package com.songlanyun.modules.servicegoods.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import com.songlanyun.common.drive.RootEntity;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 服务商品的详细内容表
 * 
 * @author lubo
 * @email sunlightcs@gmail.com
 * @date 2020-12-15 11:33:21
 */
@Data
@TableName("yxt_service_goods_content")
public class ServiceGoodsContent extends RootEntity<Long,ServiceGoodsContent> implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId
	private Long id;
	/**
	 * 服务商品id
	 */
	@NotNull(message = "服务商品id不能为空")
	private Long serviceGoodsId;
	/**
	 * pc端的详情
	 */
	private String webDetail;
	/**
	 * 手机端的详情
	 */
	@NotBlank(message = "详情不能为空")
	private String mobileDetail;

	@Override
	public Long getIdentity() {
		return getId();
	}
}
